home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11461 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  872 b 

  1. Path: ix.netcom.com!netnews
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Conditional operator overload (? :)?
  5. Date: 14 Mar 1996 18:01:18 GMT
  6. Organization: Netcom
  7. Distribution: All
  8. Message-ID: <4i9mte$2m1@cloner3.netcom.com>
  9. References: <4i9gb2$29n@natasha.rmii.com>
  10. NNTP-Posting-Host: den-co7-20.ix.netcom.com
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset=US-ASCII
  13. X-NETCOM-Date: Thu Mar 14 10:01:18 AM PST 1996
  14. X-Newsreader: WinVN 0.99.7
  15.  
  16. In article <4i9gb2$29n@natasha.rmii.com>, disch@aartronics.com says...
  17. >
  18. >We have a Boolean class and we were wondering if there was a reasonable way
  19. >to overload the conditional operator ( ? : )?
  20.  
  21. You can't.  This is one of the non-overloadable operators.
  22.  
  23. FYI:  ANSI C++ is adding a bool intrinsic type, so you may want to check to
  24. see if your compiler has it, and use it if so...
  25.  
  26. john
  27.  
  28.